package com.jd.cs.exception;

import com.jd.cs.error.ErrorCode;
import lombok.Getter;

/**
 * @author: lizhiwei
 * @date: 2020-06-22 15:33
 **/
@Getter
public class APIException extends RuntimeException {
    private String code;

    public APIException(ErrorCode errorCode) {
        this.code = errorCode.getCode();
    }
}